package ren.kane.asdppp.transaction.change;

import ren.kane.asdppp.Employee;

/**
 * @author renrk(1275) on 2019-04-20 9:00 PM
 **/
public class ChangeAddressTransaction extends ChangeEmployeeTransaction {

    private String address;

    public ChangeAddressTransaction() {
    }

    public ChangeAddressTransaction(int empId, String address) {
        super(empId);
        this.address = address;
    }

    @Override
    protected void change(Employee employee) {
        employee.setAddress(address);
    }
}
